home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 65.zip / BS1 part 65 / Math Visin v2.1 disk 2.adf / README / Function_Compiler.doc < prev    next >
Text File  |  1992-02-14  |  2KB  |  44 lines

  1.  
  2.   Notes on Fast Function Compiler, by Doug Houck, programmer
  3.  
  4.   Sometimes the compiler cannot figure out what you mean.  Then it gives 
  5.   you one of the following messages at the bottom of the screen.
  6.  
  7.   Too Many Operations Pending
  8.   Functions Too Large
  9.     You should not get these errors, but if you do, simplify your function,
  10.     and report the error.
  11.  
  12.   Unknown Function
  13.     The compiler expected a function from the function list.  (See Functions
  14.     in the Info menu)  Either you misspelled it, were daydreaming about some
  15.     other programming language, or you put in an unknown character.  For
  16.     example, you must spell out 'and,', not just put &.  Note that function
  17.     names must be delimited by a space, ), or something.
  18.  
  19.   Extra )
  20.   Missing )
  21.     Your parentheses must balance.  Otherwise the compiler would not be sure
  22.     what you meant.
  23.  
  24.   Not Enough Operands / Too Many Operators
  25.   Too Many Operands / Not Enough Operators
  26.     When the compiler got to this point, it realized it had a situation 
  27.     like '3+2+' or '3+2 4'.  In the first example, it doesn't know what to
  28.     do with the second plus sign.  In the second example, compiler can't 
  29.     use the 4.  This error can also occur when you invoke a user-defined 
  30.     function with the number of arguments indicated -
  31.     i.e. FA3(sin(x),y,sin(y)) and omit an argument i.e. FA3(sin(x),y). 
  32.     PLEASE NOTE that the error is usually a ways back, NOT at the cursor
  33.     position.
  34.  
  35.  
  36.   Recursion is supported by the Fast Function Compiler.  All passed values
  37.   and intermediate values are stored on the execution stack, so each new
  38.   invocation of a function gets it's own space.  Variables A-Z are global.
  39.   When the bottom of the process stack is reached, it returns a value of 
  40.   zero for the function.   To increase the recursion stack, execute the CLI
  41.   command STACK to set the stack size to a larger value before running 
  42.   MathVision. 
  43.  
  44.